home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / util / WeakHashMap$KeySet.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  983 b   |  41 lines

  1. package java.util;
  2.  
  3. class WeakHashMap$KeySet extends AbstractSet<K> {
  4.    // $FF: synthetic field
  5.    final WeakHashMap this$0;
  6.  
  7.    private WeakHashMap$KeySet(WeakHashMap var1) {
  8.       this.this$0 = var1;
  9.    }
  10.  
  11.    public Iterator<K> iterator() {
  12.       return new WeakHashMap.KeyIterator(this.this$0, (WeakHashMap.1)null);
  13.    }
  14.  
  15.    public int size() {
  16.       return this.this$0.size();
  17.    }
  18.  
  19.    public boolean contains(Object var1) {
  20.       return this.this$0.containsKey(var1);
  21.    }
  22.  
  23.    public boolean remove(Object var1) {
  24.       if (this.this$0.containsKey(var1)) {
  25.          this.this$0.remove(var1);
  26.          return true;
  27.       } else {
  28.          return false;
  29.       }
  30.    }
  31.  
  32.    public void clear() {
  33.       this.this$0.clear();
  34.    }
  35.  
  36.    // $FF: synthetic method
  37.    WeakHashMap$KeySet(WeakHashMap var1, WeakHashMap.1 var2) {
  38.       this(var1);
  39.    }
  40. }
  41.